import { request } from "@/utils/request.ts";

export const getUserList = async (data: any) => {
  return await request.post<{
    list: API.RoleObject[];
    pagination: API.PaginationObject;
  }>("/admin/base/sys/user/page", data);
};

export const addUser = (data: any) => {
  return request.post("/admin/base/sys/user/add", data);
};

export const delUser = (data: any) => {
  return request.post("/admin/base/sys/user/delete", data);
};

export const editUser = (data: any) => {
  return request.post("/admin/base/sys/user/update", data);
};
